package com.lebo.portal.exception;

public abstract class BaseException extends RuntimeException {
    private static final long serialVersionUID = -6744873992470752603L;
    protected int code;
    protected String msg;

    protected BaseException() {}

    protected BaseException(int code) {
        super();
        this.code = code;
    }

    protected BaseException(int code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "RuntimeException [code=" + code + ", msg=" + msg + "]";
    }

}
